package com.eportal.service.impl;

import java.math.BigDecimal;
import java.sql.Timestamp;

import javax.annotation.Resource;

import org.apache.commons.lang.NullArgumentException;
import org.springframework.stereotype.Service;

import com.eportal.base.BaseDAO;
import com.eportal.domain.PayOrder;
import com.eportal.domain.Sysopt;
import com.eportal.domain.TAgent;
import com.eportal.domain.TCommunity;
import com.eportal.domain.TuserWallet;
import com.eportal.exception.NotUniqueException;
import com.eportal.service.PayOrderService;
import com.eportal.service.UserWalletService;

@Service("payOrderService")
public class PayOrderImpl  implements PayOrderService{

	@Resource(name="dao")
	 private BaseDAO dao;
	
	@Override
	public PayOrder get(Long sid) {
		return (PayOrder)dao.getById(PayOrder.class, sid);
	}

	@Override
	public void update(PayOrder order) {
		dao.update(order);
	}

	@Override
	public void save(PayOrder order) throws Exception {
		dao.save(order);
		
	}
}
